import MessageListDTO from "../../libs/sdk/echatim/model/dto/MessageListDTO";
import RoomGetDTO from "../../libs/sdk/echatim/model/dto/RoomGetDTO";

export class ChatsStore extends MessageListDTO{
    public avatar = '';
}


export class FriendInfoStore {
    public alias =  '';// 备注名
    public auid =  '';// 账号
    public name =  '';// 名字
    public avatar =  '';// 头像
    public online =  0;// 是否在线(0 = 离线; 1 = 在线)
    public memo =  '';// 备注
    public birth =  '2020-01-01'; // 生日 (YYYY-MM-dd)
    public mobile =  '13800138000'; // 用户mobile
    public email =  ''; // 用户email
    public sign =  ''; // 用户签名,
    public blacklist =  false;
    public forbid =  true;
}


export class RoomInfoStore extends RoomGetDTO{
}

export default class ChatsContentStore {
    public friendInfo:FriendInfoStore = new FriendInfoStore();
    public roomInfo:RoomInfoStore = new RoomInfoStore();
    public select = 'friend'; // 聊天对象(friend: 好友; room: 群)
    public selectId = ''; // 聊天对象ID(用户auid; 群ID)
    public chats:Array<ChatsStore> = [] // 聊天记录
}
